var wechatList = function () {
    return {
        //main function to initiate the module
			init: function (parameter) {
				$.get(parameter.url,
				function(data){
					var liststr = '';
					if(!$.isEmptyObject(data.rows)){
						for(var j=0; j<data.rows.length ; j++){
							liststr += '<tr class="center" >';
							liststr += '<td>'+data.rows[j]['id']+'</td>';
							liststr += '<td>'+data.rows[j]['username']+'</td>';
							liststr += '<td>'+data.rows[j]['reply_content']+'</td>';
							liststr += '<td>'+data.rows[j]['deal']+'</td>';
							liststr += '</tr>';
						}
					}
					$('#'+parameter.listId).html(liststr);
				},
				'json'
			);
        }
    };

}();